#include "logging.hpp"
//#include <cstdlib>
#include <string>

INITIALIZE_EASYLOGGINGPP

void my_crash_handler(int sig)
{
	LOG(ERROR) << "oops ! crashed !";
	el::Helpers::crashAbort(sig);
}

void logging::init(const std::string& filename)
{
//	el::Helpers::installCustomFormatSpecifier(el::CustomFormatSpecifier("%fun", get_func_name));
//	el::Helpers::setCrashHandler(my_crash_handler);
	el::Configurations conf(filename);
	el::Loggers::reconfigureAllLoggers(conf);
}
